/*
*
*
*/
jQuery.xmlhttp = function(){

	this.Init = function()
	{
		var xmlHttp=null;
		try
		{
			xmlHttp=new XMLHttpRequest();
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e)
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
		this.xmlHttp = xmlHttp;
	}

	this.Post = function(url,data)
	{	
		var send = data+'&rand='+Math.random();
		var xmlHttp = this.xmlHttp;
			xmlHttp.open("post",url);
			xmlHttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
			xmlHttp.send(send);
			xmlHttp.onreadystatechange=function(){
				if(xmlHttp.readyState == 4 && xmlHttp.status == 200){//表示数据已接收成功
						var strJson= xmlHttp.responseText;
						var obj = eval("("+strJson+")"); 
						alert(obj.symbol);
				}
			}
	}
}

var xmlHttp = new $.xmlhttp;
	xmlHttp.Init();
	xmlHttp.Post("/save.php",'id=123');